import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.net.URL;

public class Download
{
	URL address;
	InputStreamReader pageInput;
	BufferedReader source;

	public URL getAddress()
	{
		return address;
	}

	public void setAddress(URL address)
	{
		this.address = address;
	}

	public InputStreamReader getPageInput()
	{
		return pageInput;
	}

	public void setPageInput(InputStreamReader pageInput)
	{
		this.pageInput = pageInput;
	}

	public BufferedReader getSource()
	{
		return source;
	}

	public void setSource(BufferedReader source)
	{
		this.source = source;
	}

	public Download(String link) throws IOException
	{
		address = new URL(link);
		pageInput = new InputStreamReader(address.openStream());
		source = new BufferedReader(pageInput);
	}
}
